home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1997 February / Macworld (1997-02).dmg / Games World / Shareware Games / Board / Super Othello 2.0 / BORD File Format next >
Text File  |  1996-09-20  |  2KB  |  51 lines

  1. BORD File Format
  2. © 1996 Yellow Lemon Software, all rights reserved.
  3.  
  4. The format of a BORD-file is as follows:
  5. Line 1: Number of chips left for the each player to place on the board
  6. Line 2: Number of chips already placed on the board (not black chips+white chips)
  7. Line 3: Used squares (see diagram below)
  8. Line 4: Board data, expressed as 0, B and W.
  9. Line 5: Copyright info, max. 170 chars.
  10.  
  11. Notes
  12.  
  13. Line 1+Line 2 should ALLWAYS be 32.
  14.  
  15. Board data is expressed like this (example): 00W00B00...
  16. A 0 (or any other letter than W or B (not CaSe sensitive)) means that this square is blank.
  17. A W means that this square is occupied by a white chip.
  18. A B means that this square is occupied by a black chip.
  19.  
  20. The number of letters in the board data should allways be 64 (8x8).
  21.  
  22. Note that when designing the board, you can use this format
  23. 00000000
  24. 0W0B0W00
  25. 00B0W0B0
  26. 0W0B0W0B
  27. 00B0W0B0
  28. 0W0B0W00
  29. 00B0W0B0
  30. 0W0B0W00
  31.  
  32. But when you are done designing it, you must remove all returns in the board data, so it eventually looks like this:
  33. 000000000W0B0W0000B0W0B00W0B0W0B00B0W0B00W0B0W0000B0W0B00W0B0W00
  34.  
  35. Used squares is expressed in the names of the buttons that are used. The format is as follows:
  36. A12345678
  37. B12345678
  38. C12345678
  39. D12345678
  40. E12345678
  41. F12345678
  42. G12345678
  43. H12345678
  44. So, the first chip in the example above would be placed at button B2, and the last chip at H6.
  45.  
  46. Important
  47.  
  48. When you are done with the board, you must remember to change its type to BORD (you can change the creator to anything you like, really, but I wouldn’t use PhotoShop’s creator or ClarisWorks’, if you see what I mean. To get the icon of the extra board files included, you’ll have to copy it and then paste it onto your own extra board file (I could have made a BNDL resource in Super Othello, but it really messes up everything else as well (such as Finder thinking that all stacks you have is a Super Othello Document)).
  49.  
  50. Legal stuff
  51. The BORD-format is © 1996 Yellow Lemon Software, all rights reserved. For licensing, contact me at stoedle@online.no.